package com.translation.dao.impl;

import org.apache.commons.dbcp.BasicDataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.ibatis.sqlmap.client.SqlMapClient;

public class BaseDAOImpl extends SqlMapClientDaoSupport{
	
	
	/**
	 * 重写setDataSource注入
	 * 这里注入context.xml文件里初始化的bean
	 * 
	 */
	
	
	@Autowired
	public void setDataSourse(BasicDataSource dataSource){
		super.setDataSource(dataSource);
	}
	
	@Autowired
	public void setSqlMapClientForAutowired(SqlMapClient sqlMapClient){
		super.setSqlMapClient(sqlMapClient);
	}
}
